import type { Component } from "solid-js";

import "bootstrap-icons/font/bootstrap-icons.min.css";
import "./App.scss";
import { HashRouter, Route, Router } from "@solidjs/router";
import Layout from "./pages/layout";
import routes from "./pages/routes";
import Home from "./pages/home";
import FormDemo from "./pages/form";
import NotFound from "./pages/layout/404";
import { ConfigContext } from "@lib/config";

const App: Component = () => {
  return (
    <ConfigContext.Provider value={{ logging: true }}>
      <HashRouter base="/" root={Layout}>
        {routes}
      </HashRouter>
    </ConfigContext.Provider>
  );
};

export default App;

